package com.xiaochi.oss.adapter;

import com.xiaochi.oss.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.LinkedList;
import java.util.List;

/**
 * @author zqx
 * @since 2024/8/21
 */
public class AliStroageAdapter implements StorageAdapter {
    @Override
    public void createBucket(String bucket) {

    }

    @Override
    public void uploadFile(MultipartFile multipartFile, String bucket, String objectName) {

    }


    @Override
    public List<String> getAllBuckets() {
        List<String> buckets = new LinkedList<>();
        buckets.add("aliyun");
        return buckets;
    }

    @Override
    public List<FileInfo> getAllFiles(String bucket) {
        return null;
    }

    @Override
    public InputStream download(String bucket, String objectName) {
        return null;
    }

    @Override
    public void deleteFile(String bucket, String objectName) {

    }

    @Override
    public void deleteBucket(String bucket) {

    }

    @Override
    public String getUrl(String bucket, String objectName) {
        return null;
    }


}
